X
When you create an express session, you get to set the expiration or maxage properties for the session cookie. You can access these properties within the session object. For this example, I'm going to be adding 5 minutes to the maxage property of the cookie when the user hits the route timeextend. You can read all about the options for a cookie here.